﻿////#define _CRT_SECURE_NO_WARNINGS
////#include<iostream>
////using namespace std;
//////int main()
//////{
//////	cout << 9 << endl;
//////	return 0;
//////}
//////#include<iostream>
//////using namespace std;
//////typedef int STDataType;
//////class Stack
//////{
//////public:
//////	Stack(int n = 4)
//////	{
//////		_a = (STDataType*)malloc(sizeof(STDataType) * n);
//////		if (nullptr == _a)
//////		{
//////			perror("malloc申请空间失败");
//////			return;
//////		}
//////		_capacity = n;
//////		_top = 0;
//////	}
//////private:
//////	STDataType* _a;
//////	size_t _capacity;
//////	size_t _top;
//////};
//////// 两个Stack实现队列
//////class MyQueue
//////{
//////public:
//////	//编译器默认⽣成MyQueue的构造函数调⽤了Stack的构造，完成了两个成员的初始化
//////private:
//////	Stack pushst;
//////	Stack popst;
//////};
//////int main()
//////{
//////	MyQueue mq;
//////	return 0;
//////}
////
////
//////#include<iostream>
//////using namespace std;
//////class Date
//////{
//////public:
//////	~Date()
//////	{
//////		cout << "析构函数" << endl;
//////	}
//////	// 1.⽆参构造函数
//////	Date()
//////	{
//////		_year = 1;
//////		_month = 1;
//////		_day = 1;
//////		cout << "无参构造函数" << endl;
//////	}
//////	// 2.带参构造函数
//////	Date(int year, int month, int day)
//////	{
//////		cout << "带参构造函数" << endl;
//////		_year = year;
//////		_month = month;
//////		_day = day;
//////	}
//////	Date(Date& d1)
//////	{
//////		cout << "拷贝构造函数" << endl;
//////	}
//////	void Print()
//////	{
//////		cout << _year << "/" << _month << "/" << _day << endl;
//////	}
//////private:
//////	int _year;
//////	int _month;
//////	int _day;
//////};
//////void func(int d1)
//////{
//////
//////}
//////Date fubc2(Date d)
//////{
//////	Date d1;
//////	return d;
//////}
//////int main()
//////{
//////	Date d;
//////	//func(1);
//////	
//////	fubc2(d);
//////	return 0;
//////}
//////#include<iostream>
//////using namespace std;
//////class A
//////{
//////public:
//////	void func()
//////	{
//////		cout << "A::func()" << endl;
//////	}
//////};
//////typedef void(A::* PF)();
//////int main()
//////{
//////	A p;
//////	PF pf = &A::func;//这个就是A中的func函数的指针
//////	(p.*pf)();
//////
//////}
////#include<iostream>
////using namespace std;
////class A
////{
////public:
////	A(int a)//a==1
////		:_a1(a)
////		, _a2(8)
////	{
////		_a2 = 6;
////	}
////	void Print() {
////		cout << _a1 << " " << _a2 << endl;
////	}
////private:
////	int _a2 = 2;
////	int _a1 = 2;
////};
////int main()
////{
////	A aa(1);
////	aa.Print();
////}
//#include"Date.h"
//void test1()
//{
//	Date d1(2024, 2, 29);
//	Date d2(2024, 7, 15);
//	d2 = d1 + 2;
//	d2 += 3;
//	d2.print();
//}
//void test2()
//{
//	/*Date d1(2024, 7, 15);
//	Date d2(d1 - (-10000));
//	d1.print();
//	Date d3(d1++);
//	d1.print();
//	d3.print();
//	Date d4(++d1);
//	d1.print();
//	d4.print();
//	Date d5(--d1);
//	d1.print();
//	d5.print();
//	Date d6(d1--);
//	d1.print();
//	d6.print();*/
//	Date d1(2024, 1, 5);
//	cout << d1;
//	cin >> d1;
//	cout << d1;
//}
//void test3()
//{
//	Date d1(2024, 12, 3);
//	//cin >> d1;
//	Date d2(2025, 2, 19);
//	//cin >> d2;
//	int ret = d1 - d2;
//	cout << ret << endl;
//}
//int main()
//{
//	//test1();
//	//test2();
//	test3();
//	return 0;
//}
//
////#include <iostream>
////using namespace std;
////class Myint {
////	friend ostream& operator<<(ostream& os, Myint& p);
////	int num;
////public:
////	Myint(int num) {
////		this->num = num;
////	}
////	Myint& operator++() {
////		num++;
////		return *this;
////	}
////	Myint operator++(int) {
////		Myint temp = *this;
////		num++;
////		return temp;
////	}
////};
////ostream& operator<<(ostream& os, Myint& p) {
////	cout << p.num;
////	return os;
////}
////int main() {
////	Myint a1(0);
////	cout << a1 << "  " << endl;
////	cout << ++a1 << "  " << endl;
////	cout << a1++ << "  " << endl;
////	cout << a1 << "  " << endl;
////	return 0;
////}

#include<iostream>
using namespace std;

class Data
{
public:
	Data()
		//:_a(16)
	{
	
	}
	void print()
	{
		cout << _year << '/' << _month << '/' << _day <<'/'<<_a << endl;
	}
	Data* operator&()
	{
		return this;
		 return nullptr;
	}
	 const Data * operator&()const
	  {
		 return this;
		  return nullptr;
	 }
 private:
	 int _year; // 年
	 int _month; // ⽉
	 int _day; // ⽇
	 const int _a =9;
};

int main()
{
	Data d1;
	d1.print();
	return 0;
}